package com.eva.dao.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eva.framework.mp.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.util.Date;

@Data
@Accessors(chain = true)
@SuperBuilder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel("用户和部门关联表")
@TableName("`system_user_department`")
public class SystemUserDepartment extends BaseModel {

    @TableField("`user_id`")
    @ApiModelProperty(value="用户ID")
    private Integer userId;

    @TableField("`department_id`")
    @ApiModelProperty(value="部门ID")
    private Integer departmentId;

    @TableField("`is_leader`")
    @ApiModelProperty(value="是否为部门负责人")
    private Boolean isLeader;

    @TableField(exist = false)
    private Date createdAt;

    @TableField(exist = false)
    private Integer updatedBy;

    @TableField(exist = false)
    private Date updatedAt;

}
